package com.neuedu.singleton;

import javax.xml.crypto.dsig.SignedInfo;

public class SingletonTestdriver {
    public static void main(String[] args) {
        //获取单例模式类的一个实例对象
        Singleton st0=Singleton.getSingletonInstance();
        //获取单例模式类的一个实例对象
        Singleton st1=Singleton.getSingletonInstance();
        //判定这两个实例变量是不是同一个实例变量
        System.out.println("st0==st1:"+(st0 == st1));

        System.out.println("-----------------");
        Student stu0=new Student();
        Student stu1=new Student();
        System.out.println("stu0==stu1:"+(stu0 == stu1));

    }
}
